clear all;close all;clc

info = audiodevinfo
info.input.Name
dur = 70;
N_channel=2;
Fs = 44100;
input_ID=0
recObj = audiorecorder(Fs,16,N_channel,input_ID);
disp("Begin recording.")
recordblocking(recObj,dur);
disp("End of recording.")
recorded_sound = getaudiodata(recObj);
figure;plot(recorded_sound)
save Left_30_Noise recorded_sound



% play(recObj)
